import {createApp} from 'vue';
import App from './App.vue';
import {pinia} from "./store";
import {router} from './router'
import './style.css'

import {
  Button, Field, Icon, Popup, Popover, CellGroup, NavBar, Overlay, Loading, Empty, List, Cell,
  Notify, ImagePreview, PullRefresh, Toast, Uploader, Image, Col, Row, BackTop, ConfigProvider
} from 'vant';
import 'vant/lib/index.css';


const app = createApp(App)
app.config.globalProperties.$router = router

app.use(pinia)
app.use(router)

app.use(Button).use(Field).use(Icon).use(CellGroup).use(Empty).use(Toast).use(List)
  .use(NavBar).use(ImagePreview).use(PullRefresh).use(Col).use(Row).use(Cell)
  .use(Overlay).use(Toast).use(Uploader).use(Image).use(BackTop).use(Popup)
  .use(Loading).use(Popover)
  .use(Notify).use(ConfigProvider)
app.mount('#app')
